package book;

public class BookList {
    private Book[] books = new Book[10];
    private int booksSize = -1;

    public BookList() {
        this.books[0] = new Book("C语言","鹏哥",13,"学习");
        this.books[1] = new Book("Java","博哥",15,"学习");
        this.books[2] = new Book("数据结构","绵姐",17,"学习");
        this.booksSize = 3;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,Book book) {
        this.books[pos] = book;
    }

    public int getBooksSize() {
        return booksSize;
    }

    public void setBooksSize(int booksSize) {
        this.booksSize = booksSize;
    }
}
